package com.toman.widget.callback.http;

import android.support.annotation.Nullable;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.lzy.okhttputils.callback.AbsCallback;
import com.lzy.okhttputils.callback.StringCallback;

import okhttp3.Request;
import okhttp3.Response;

/**
 * Created by 邹苏隆 on 2018/8/22.
 * description：
 */

public class NetCallback extends StringCallback {



    @Override
    public void onResponse(boolean isFromCache, String s, Request request, @Nullable Response response) {
        JSONObject jsonObj = JSON.parseObject(s);
        int code =jsonObj.getInteger("code");

    }
}
